package pl.taskman.model;

import java.util.Random;

import pl.taskman.core.AbstractModel;

public class NoteDTO extends AbstractModel
{
	private Integer	id;
	private String	content;
	private Integer	priority;
	private NoteDTO	parentNote;
	private Boolean	isTask;
	private Boolean	isCompleted;
	private Boolean	isDeleted;

	public static NoteDTO generateRandom()
	{
		Random r = new Random();
		NoteDTO note = new NoteDTO();
		note.content = "Tresc " + r.nextInt();
		note.isCompleted = r.nextBoolean();
		note.isDeleted = r.nextInt(10) > 8 ? true : false;
		note.priority = r.nextInt(3);
		return note;
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public Integer getPriority()
	{
		return priority;
	}

	public void setPriority(Integer priority)
	{
		this.priority = priority;
	}

	public NoteDTO getParentNote()
	{
		return parentNote;
	}

	public void setParentNote(NoteDTO parentNote)
	{
		this.parentNote = parentNote;
	}

	public Boolean getIsTask()
	{
		return isTask;
	}

	public void setIsTask(Boolean isTask)
	{
		this.isTask = isTask;
	}

	public Boolean getIsCompleted()
	{
		return isCompleted;
	}

	public void setIsCompleted(Boolean isCompleted)
	{
		this.isCompleted = isCompleted;
	}

	public Boolean getIsDeleted()
	{
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted)
	{
		this.isDeleted = isDeleted;
	}

}
